package com.zh.kotlin_mvvm.ftp.bean;

import androidx.annotation.Nullable;

import java.io.Serializable;
import java.util.List;

public class PlayDownLoadInfo implements Serializable {
    private int videoId;
    private String videoName;
    private String videoImage;
    private int downLoadingCount;
    private int downloadDoneCount;
    private int downloadCount;
    private String downloadCountSize;
    private boolean isTvVideo;
    private List<LocalVideoInfo> itemVideos;

    @Override
    public boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
        if (null == obj) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        PlayDownLoadInfo info = (PlayDownLoadInfo) obj;
        return videoId == info.getVideoId();
    }

    public static class ItemVideo{
        private int itemId;
        private String itemName;
        private String itemImage;
        private String size;
        private String speed;
        private int progress;
        private boolean isDone;

        public int getItemId() {
            return itemId;
        }

        public void setItemId(int itemId) {
            this.itemId = itemId;
        }

        public String getItemName() {
            return itemName;
        }

        public void setItemName(String itemName) {
            this.itemName = itemName;
        }

        public String getItemImage() {
            return itemImage;
        }

        public void setItemImage(String itemImage) {
            this.itemImage = itemImage;
        }

        public String getSize() {
            return size;
        }

        public void setSize(String size) {
            this.size = size;
        }

        public String getSpeed() {
            return speed;
        }

        public void setSpeed(String speed) {
            this.speed = speed;
        }

        public int getProgress() {
            return progress;
        }

        public void setProgress(int progress) {
            this.progress = progress;
        }

        public boolean isDone() {
            return isDone;
        }

        public void setDone(boolean done) {
            isDone = done;
        }
    }

    public boolean isTvVideo() {
        return isTvVideo;
    }
    public void setTvVideo(boolean tvVideo) {
        isTvVideo = tvVideo;
    }
    public int getVideoId() {
        return videoId;
    }

    public void setVideoId(int videoId) {
        this.videoId = videoId;
    }

    public String getVideoName() {
        return videoName;
    }

    public void setVideoName(String videoName) {
        this.videoName = videoName;
    }

    public String getVideoImage() {
        return videoImage;
    }

    public void setVideoImage(String videoImage) {
        this.videoImage = videoImage;
    }

    public int getDownLoadingCount() {
        return downLoadingCount;
    }

    public void setDownLoadingCount(int downLoadingCount) {
        this.downLoadingCount = downLoadingCount;
    }

    public int getDownloadDoneCount() {
        return downloadDoneCount;
    }

    public void setDownloadDoneCount(int downloadDoneCount) {
        this.downloadDoneCount = downloadDoneCount;
    }

    public String getDownloadCountSize() {
        return downloadCountSize;
    }

    public void setDownloadCountSize(String downloadCountSize) {
        this.downloadCountSize = downloadCountSize;
    }

    public int getDownloadCount() {
        return downloadCount;
    }

    public void setDownloadCount(int downloadCount) {
        this.downloadCount = downloadCount;
    }

    public List<LocalVideoInfo> getItemVideos() {
        return itemVideos;
    }

    public void setItemVideos(List<LocalVideoInfo> itemVideos) {
        this.itemVideos = itemVideos;
    }
}
